package org.bambrikii.kbManager.kb2.managers.query4.impl.builders.hql.q;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

import org.bambrikii.kbManager.kb2.managers.query4.ConditionSource;

public class HQLCriteria {
	private Set<ConditionSource> from = new LinkedHashSet<ConditionSource>();
	private String condition;

	public HQLCriteria(List<ConditionSource> from, String condition) {
		this.from.addAll(from);
		this.condition = condition;
	}

	public HQLCriteria(ConditionSource from, String condition) {
		this.from.add(from);
		this.condition = condition;
	}

	public Set<ConditionSource> getFrom() {
		return from;
	}

	public String getCondition() {
		return condition;
	}
}
